/*------------------------------------------------------------------------------------------------\
| Horrible X-Wing game by Steven Haber
| st_haber@hotmail.com
|
| health.h: contains class Health, which holds the health of a player and displays a health bar
\------------------------------------------------------------------------------------------------*/

#ifndef HEALTH_H
#define HEALTH_H

#include "xwing.h"

class Sound;

class Health
{
public:
	Health(sf::Sprite *sprites[], sf::RenderWindow *out, int posX, int posY, Sound *sounds);
	bool hurt(int amount);
	void drawHealth();
	
private:
	sf::Sprite mSpriteUnder;
	sf::Sprite mSpriteOver;
	sf::RenderWindow *mOut;
	Sound *mSounds;

	int mHealth;
};

#endif